package com.shadowtorcher.TableRolePlayingSystem.dao;

import com.shadowtorcher.TableRolePlayingSystem.bean.User;
import org.apache.ibatis.annotations.Param;

public interface UserDao {
    public void delData(@Param("userName") String userName);

    public void updateData(User user);

    public User logIn(@Param("userName") String userName, @Param("userPassword") String userPassword);
	public User findUserByName(@Param("userName") String userName);

    public int registerUser(@Param("userName") String userName, @Param("userPassword") String userPassword);

    void registerNewUser(@Param("name") String name, @Param("password") String password,
                         @Param("data") String data, @Param("publicKey") String key);

    void upDateUserPublicKey(@Param("name") String name, @Param("publicKey") String publicKey);

    User getUserByName(@Param("name") String name);
}
